var oVenues =
{
    venue1: {
        name: 'Olympic Park',
        lat: 51.4985984,
        long: -0.1247384,
        address: 'Olympic park, Stratford, East London',
        pInfo: 'volleyball,diving,swimming,athletics,tennis',
        thumb: 'OlympicPark.jpg'
    },
    venue2: {
        name: 'North Greenwich Arena',
        lat: 51.5017382,
        long: 0.0031038,
        address: 'The O2, Peninsula Square, London, SE10 0DX',
        pInfo: 'gymnastics,volleyball',
        thumb: 'NorthGreenwichArena.jpg'
    },
    venue3: {
        name: 'Greenwich Park',
        lat: 51.477805,
        long: -0.00143,
        address: 'Royal Observatory Greenwich, Greenwich Park, London, United Kingdom, SE10 8XJ',
        pInfo: 'horseriding,fencing,swimming,athletics',
        thumb: 'GreenwichPark.jpg'
    },
    venue4: {
        name: 'ExCel',
        lat: 51.5081535,
        long: 0.0264568,
        address: 'ExCel London, One Western Gateway, Royal Victoria Dock, London, E16 1XL',
        pInfo: 'boxing,weightlifting,fencing',
        thumb: 'ExCel.jpg'
    },
    venue5: {
        name: 'The Royal Artillary Barracks',
        lat: 51.4859206,
        long: 0.059651,
        address: 'Artillery House, Royal Artillery Barracks, Greenwich, London SE18 4BH, UK',
        pInfo: 'shooting',
        thumb: 'TheRoyalArtillaryBarracks.jpg'
    },
    venue6: {
        name: 'Wimbledon',
        lat: 51.4170137,
        long: -0.2135824,
        address: 'Wimbledon, Church Road, Wimbledon, London, SW19 5AE',
        pInfo: 'tennis',
        thumb: 'Wimbledon.jpg'
    },
    venue7: {
        name: 'Wembley Arena',
        lat: 51.5609325,
        long: -0.2870657,
        address: 'Wembley Arena, Arena Square, Engineers Way, London, United Kingdom, HA9 OAA',
        pInfo: 'gymnastics',
        thumb: 'WembleyArena.jpg'
    },
    venue8: {
        name: 'Wembley Stadium',
        lat: 51.5567009,
        long: -0.2796655,
        address: 'Wembley, Greater London HA9 0WS, UK',
        pInfo: 'football',
        thumb: 'WembleyStadium.jpg'
    },
    venue9: {
        name: 'Earls Court',
        lat: 51.4893988,
        long: -0.197416,
        address: 'Earls Court,  Warwick Road, London, SW5 9TA',
        pInfo: 'volleyball',
        thumb: 'EarlsCourt.jpg'
    },
    venue10: {
        name: 'Hyde Park',
        lat: 51.5113503,
        long: -0.1858132,
        address: 'Hyde Park, London, United Kingdom',
        pInfo: 'swimming,athletics,cycling',
        thumb: 'HydePark.jpg'
    },
    venue11: {
        name: 'Lord\'s Cricket Ground',
        lat: 51.52946494092692,
        long: -0.17286300659179688,
        address: 'Lord\'s Cricket Ground, London, United Kingdom',
        pInfo: 'archery',
        thumb: 'LordsCricketGround.jpg'
    },
    venue12: {
        name: 'The Mall',
        lat: 51.4976966,
        long: -0.1431638,
        address: 'Victoria Station, London, United Kingdom',
        pInfo: 'athletics,cycling',
        thumb: 'TheMall.jpg'
    }
};
var oHotels =
{
    hotel1: {
        name: 'Ibis London Stratford',
        lat: 51.53639,
        long: -0.00432,
        address: '1a Romford Road Stratford, London, E15 4LJ',
        thumb: 'http://images.travelnow.com/hotelimages/s/000000/000359A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/ibislondonstratford\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho175060/" target="_blank">Ibis London Stratford</a>'
    },
    hotel2: {
        name: 'Express by Holiday Inn',
        lat: 51.50797,
        long: -0.02412,
        address: '196 High Street, London, E15 2NE',
        thumb: 'http://images.travelnow.com/hotelimages/s/046000/046378A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/expressbyholidayinn\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho206820/" target="_blank">Express by Holiday Inn</a>'
    },
    hotel3: {
        name: 'Marriott West India Quay',
        lat: 51.49259,
        long: 0.01057,
        address: '22 Hertsmere Road, Canary Wharf, London, E14 4ED',
        thumb: 'http://images.travelnow.com/hotelimages/s/034000/034918A.jpg',
        pInfo: '<a href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho219357/" >Marriott West India Quay</a>'
    },
    hotel4: {
        name: 'Holiday Inn Express London Greenwich',
        lat: 51.49259,
        long: 0.01057,
        address: '85 Bugsbys Way, London, SE10 0GD',
        thumb: 'http://images.travelnow.com/hotelimages/s/049000/049319A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/holidayinnexpresslondongreenwich\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho169398/" target="_blank">Holiday Inn Express London Greenwich</a>'
    },
    hotel5: {
        name: 'Radisson Edwardian New Providence Wharf London',
        lat: 51.50605,
        long: -0.00578,
        address: '5 Fairmont Avenue, London, E14 9PQ',
        thumb: 'http://images.travelnow.com/hotels/LON_WHAR-exter-1.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/radissonedwardiannewprovidencewhaflondon\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho257616/" target="_blank">Radisson Edwardian New Providence Wharf London</a>'
    },
    hotel6: {
        name: 'Ibis London Docklands',
        lat: 51.50682,
        long: -0.00701,
        address: '1 Baffin Way off Preston Road, London, E14 9PE',
        thumb: 'http://images.travelnow.com/hotelimages/s/036000/036463A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/ibislondondocklands\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho183500/" target="_blank">Ibis London Docklands</a>'
    },
    hotel7: {
        name: 'Ibis London Greenwich',
        lat: 51.48007,
        long: -0.00945,
        address: '30 Stockwell Street, London, SE10 9JM',
        thumb: 'http://images.travelnow.com/hotelimages/s/017000/017261A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/ibislondongreenwich\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho179227/" target="_blank">Ibis London Greenwich</a>'
    },
    hotel8: {
        name: 'Novotel London Greenwich',
        lat: 51.47768,
        long: -0.0135,
        address: '173-185 Greenwich High Road, London, SE10 8JA',
        thumb: 'http://images.travelnow.com/hotelimages/s/047000/047167A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/novotellondongreenwich\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho226467/" target="_blank">Novotel London Greenwich</a>'
    },
    hotel9: {
        name: 'Ibis London Docklands - ExCeL',
        lat: 51.50714,
        long: 0.03232,
        address: '9 Royal Victoria Dock, London, E16 1SL',
        thumb: 'http://images.travelnow.com/hotelimages/s/053000/053588A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/ibislondondocklandsexcel\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho215235/" target="_blank">Ibis London Docklands - ExCeL</a>'
    },
    hotel10: {
        name: 'Crowne Plaza London - Docklands',
        lat: 51.5086,
        long: 0.0278,
        address: 'Western Gateway, Royal Victoria Dock, London, E16 1AL',
        thumb: 'http://images.travelnow.com/hotelimages/s/051000/051409A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/crowneplazalondondocklands\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho213230/" target="_blank">Crowne Plaza London - Docklands</a>'
    },
    hotel11: {
        name: 'Ramada Hotel and Suites London Docklands',
        lat: 51.50774,
        long: 0.03682,
        address: 'ExCel, 2 Festoon Way, Royal Victoria Dock, London, E16 1RH',
        thumb: 'http://images.travelnow.com/hotelimages/s/004000/004031A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/ramadahotelandsuiteslondondocklands\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho218082/" target="_blank">Ramada Hotel and Suites London Docklands</a>'
    },
    hotel12: {
        name: 'Hilton London Docklands Riverside',
        lat: 51.50406,
        long: -0.03413,
        address: '265 Rotherhithe Street, London, SE16 5HW',
        thumb: 'http://images.travelnow.com/hotelimages/s/025000/025000A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/hiltonlondondocklandsriverside\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho124508/" target="_blank">Hilton London Docklands Riverside</a>'
    },
    hotel13: {
        name: 'Hilton London Canary Wharf',
        lat: 51.50066,
        long: -0.02008,
        address: 'South Quay Marsh Wall, London, E14 9SH',
        thumb: 'http://images.travelnow.com/hotelimages/s/014000/014293A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/hiltonlondoncanarywharf\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho234575/" target="_blank">Hilton London Canary Wharf</a>'
    },
    hotel14: {
        name: 'Cannizaro House',
        lat: 51.42435,
        long: -0.22778,
        address: 'West Side Wimbledon Common, London, SW19 4UE',
        thumb: 'http://images.travelnow.com/hotelimages/s/065000/065039A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/cannizarohouse\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho176902/" target="_blank">Cannizaro House</a>'
    },
    hotel15: {
        name: 'Holiday Inn Express London Wimbledon South',
        lat: 51.41788,
        long: -0.17857,
        address: '200 High Street, London, SW192BH',
        thumb: 'http://images.travelnow.com/hotelimages/s/007000/007875A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/holidayinnexpresslondonwimbledonsouth\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho153012/" target="_blank">Holiday Inn Express London Wimbledon South</a>'
    },
    hotel16: {
        name: 'Express By Holiday Inn Wandsworth - Battersea',
        lat: 51.46149,
        long: -0.19215,
        address: 'Smugglers Way, Wandsworth, London, SW18 1EG',
        thumb: 'http://images.travelnow.com/hotels/LON_WABA-exter-1.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/expressbyholidayinnwandsworthbattersea\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho274072/" target="_blank">Express By Holiday Inn Wandsworth - Battersea</a>'
    },
    hotel17: {
        name: 'Quality Hotel Wembley',
        lat: 51.55745,
        long: -0.28624,
        address: 'Empire Way, Apton House, London, HA9 0NN',
        thumb: 'http://images.travelnow.com/hotelimages/s/038000/038935A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/qualityhotelwembley\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho205996/" target="_blank">Quality Hotel Wembley</a>'
    },
    hotel18: {
        name: 'Wembley Plaza',
        lat: 51.55615,
        long: -0.2859,
        address: 'Empire Way, London, HA9 8DS',
        thumb: 'http://images.travelnow.com/hotelimages/s/011000/011641A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/wembleyplaza\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho198205/" target="_blank">Wembley Plaza</a>'
    },
    hotel19: {
        name: 'Crowne Plaza London Ealing',
        lat: 51.52984,
        long: -0.29403,
        address: 'Western Avenue Hanger Lane, London, W5 1HG',
        thumb: 'http://images.travelnow.com/hotelimages/s/023000/023834A.jpg',
        pInfo: '	<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/crowneplazalondonealing\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho180653/" target="_blank">Crowne Plaza London Ealing</a>'
    },
    hotel20: {
        name: 'Ibis London Wembley',
        lat: 51.55514,
        long: -0.28438,
        address: 'South Way Wembley, London, HA9 6BA',
        thumb: 'http://images.travelnow.com/hotelimages/s/032000/032851A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/ibislondonwembley\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho206152/" target="_blank">Ibis London Wembley</a>'
    },
    hotel21: {
        name: 'Express by Holiday Inn London Park Royal',
        lat: 51.52304,
        long: -0.26006,
        address: 'Victoria Road, North Acton Station, London, W3 6XU',
        thumb: 'http://images.travelnow.com/hotelimages/s/055000/055358A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/expressbyholidayinnlondonparkroyal\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho215422/" target="_blank">Express by Holiday Inn London Park Royal</a>'
    },
    hotel22: {
        name: 'Best Western Premier Shaftesbury Kensington',
        lat: 51.49395,
        long: -0.19177,
        address: '33 Hogarth Road, Hyde Park, London, SW5 0QQ',
        thumb: 'http://images.travelnow.com/hotelimages/s/043000/043013A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/bestwesternpremiershaftesburykensington\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho181606/" target="_blank">Best Western Premier Shaftesbury Kensington</a>'
    },
    hotel23: {
        name: 'Four Seasons London Canary Wharf',
        lat: 51.50599,
        long: -0.02801,
        address: '46 Westferry Circus, London, E14 8RS',
        thumb: 'http://images.travelnow.com/hotelimages/s/045000/045083A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/fourseasonslondoncanarywharf\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho172390/" target="_blank">Four Seasons London Canary Wharf</a>'
    },
    hotel24: {
        name: 'Express by Holiday Inn Earls Court',
        lat: 51.4863,
        long: -0.20283,
        address: '295 North End Rd, North End Road, London, W14 9NL',
        thumb: 'http://images.travelnow.com/hotelimages/s/048000/048081A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/ex[ressbyholidayinnearlscourt\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho264885/" target="_blank">Express by Holiday Inn Earls Court</a>'
    },
    hotel25: {
        name: 'Best Western Mornington Hotel',
        lat: 51.51191,
        long: -0.17828,
        address: '12 Lancaster Gate, London, W2 3LG',
        thumb: 'http://images.travelnow.com/hotelimages/s/011000/011534A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/bestwesternmorningtonhotel\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho168099/" target="_blank">Best Western Mornington Hotel</a>'
    },
    hotel26: {
        name: 'Corus Hotel Hyde Park',
        lat: 51.51155,
        long: -0.17769,
        address: '1-7 Lancaster Gate, London, W2 3LG',
        thumb: 'http://images.travelnow.com/hotelimages/s/020000/020440A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/corushotelhydepark\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho144800/" target="_blank">Corus Hotel Hyde Park</a>'
    },
    hotel27: {
        name: 'London Elizabeth Hotel',
        lat: 51.51214,
        long: -0.17589,
        address: '4 Lancaster Terrace, Hyde Park, London, W2 3PF',
        thumb: 'http://images.travelnow.com/hotelimages/s/064000/064901A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/londonelizabethhotel\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho228481/" target="_blank">London Elizabeth Hotel</a>'
    },
    hotel28: {
        name: 'Danubius Hotel Regents Park',
        lat: 51.52904,
        long: -0.16867,
        address: '18 Lodge Road, London, NW8 7JT',
        thumb: 'http://images.travelnow.com/hotelimages/s/009000/009982A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/danubiushotelregentspark\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho169896/" target="_blank"> Danubius Hotel Regents Park </a>'
    },
    hotel29: {
        name: 'Hilton London Metropole',
        lat: 51.51866,
        long: -0.16828,
        address: '225 Edgware Road, London, W2 1JU',
        thumb: 'http://images.travelnow.com/hotelimages/s/041000/041708A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/hiltonlondonmetropole\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho170309/" target="_blank">Hilton London Metropole</a>'
    },
    hotel30: {
        name: 'The Trafalgar Hilton',
        lat: 51.50648,
        long: -0.12796,
        address: '2 Spring Gardens, London, SW1A 2TS',
        thumb: 'http://images.travelnow.com/hotelimages/s/057000/057834A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/thetrafalgarhilton\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho195145/" target="_blank">The Trafalgar Hilton</a>'
    },
    hotel31: {
        name: 'Radisson Edwardian Hampshire Hotel',
        lat: 51.51004,
        long: -0.12787,
        address: '31-36 Leicester Square, London, WC2H 7LH',
        thumb: 'http://images.travelnow.com/hotelimages/s/022000/022425A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/radissonedwardianhampshirehotel\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho122650/" target="_blank">Radisson Edwardian Hampshire Hotel</a>'
    },
    hotel32: {
        name: 'Thistle Piccadilly',
        lat: 51.51027,
        long: -0.13211,
        address: 'Coventry Street, London, W1D 6BZ',
        thumb: 'http://images.travelnow.com/hotelimages/s/011000/011835A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/thistlepiccadilly\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho114929/" target="_blank">Thistle Piccadilly</a>'
    },
    hotel33: {
        name: 'Royal Horseguards Hotel',
        lat: 51.50577,
        long: -0.12439,
        address: '2 Whitehall Court, London, SW1A 2EJ',
        thumb: 'http://images.travelnow.com/hotelimages/s/009000/009582A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/royalhoreguardshotel\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho113320/" target="_blank">Royal Horseguards Hotel</a>'
    },
    hotel34: {
        name: 'The Grand at Trafalgar Square',
        lat: 51.50732,
        long: -0.12735,
        address: '8 Northumberland Ave, London, WC2N 5BY',
        thumb: 'http://images.travelnow.com/hotels/LON_RAND-exter-2.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/thegrandattrafalgarsquare\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho249676/" target="_blank">The Grand at Trafalgar Square</a>'
    },
    hotel35: {
        name: 'Sofitel London St James',
        lat: 51.5071,
        long: -0.13232,
        address: '6 Waterloo Place, London, SW1Y 4AN',
        thumb: 'http://images.travelnow.com/hotelimages/s/059000/059309A.jpg',
        pInfo: '<a onclick="javascript:pageTracker._trackPageview(\'/outgoing/olympicpage/map/sofitellondonstjames\');" href="http://hotelaccommodation.at/forsale?CTY=9&CID=294&DURL=http://www.hotels.com/ho199888/" target="_blank">Sofitel London St James</a>'
    }
};
var openWin = null;

function createPopMarkers(map, pin, icons, obj)
{	
	var bugCount = 0;

    var marker = [];
    var i;
    var latlng = new google.maps.LatLng(obj.lat, obj.long);
    marker[obj.name] = new google.maps.Marker(
    {
        position: latlng,
        map: map,
        title: obj.name,
        icon: 'http://olympic-map.googlecode.com/svn/trunk/images/' + pin
    });
    var infoLink = '';
    var infoTitle = obj.name;
    var pInfo = '';
    var infoAddress = obj.address.replace(', ', '<br/>');
    var infoThumb;

     var mapList = ( icons ) ? '#mapSidebar ul.venues' : '#mapSidebar ul.hotels' ;

    
	$(mapList).append( '<li>' + infoTitle + '</li>' );
	var menuItem = $('#mapSidebar li:last');
	

    
    if (icons)
    {	
        var pInfoArray = obj.pInfo.split(',');
        infoThumb = '<img class="popThumb" src="http://olympic-map.googlecode.com/svn/trunk/images/eventThumbs/' + obj.thumb + '" width="100" height="100"/>';
        pInfo += '<div class="infoIcons">';
        for (i in pInfoArray)
        {
            pInfo += '<img src="http://olympic-map.googlecode.com/svn/trunk/images/' + pInfoArray[i] + '.png" height="40"/>';
        }
        pInfo += '</div>';
    }
    else
    {	
        infoTitle = obj.pInfo;
        infoThumb = '<img class="popThumb" src="' + obj.thumb + '" width="100" height="100"/>';
    }
    var infoContent = '<div class="cont"><div class="mapPopInfo"><h3>' + infoTitle + '</h3><p>' + infoAddress + '<br/>' + '</p>' + pInfo + '</div>' + infoThumb + '</div>';
    var infowindow = new google.maps.InfoWindow(
    {
        content: infoContent
    });
    
    google.maps.event.addListener(marker[obj.name], 'click', function ()
    {
        if (openWin !== null)
        {
            openWin.close();
        }
        infowindow.open(map, marker[obj.name]);
        openWin = infowindow;
    });
    
    // Add sidebar links
    menuItem.click(function(){
    	if (openWin !== null)
        {
            openWin.close();
        }
        infowindow.open(map, marker[obj.name]);
        openWin = infowindow;
    });
    
}

function init()
{
    var marker;
    var latlng = new google.maps.LatLng(51.4985984, -0.1247384);
    var myOptions =
    {
        zoom: 11,
        center: latlng,
        scrollwheel: false,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map"), myOptions);
    var trafficLayer = new google.maps.TrafficLayer();
    for (marker in oVenues)
    {
        createPopMarkers(map, 'venue_pin.png', 1, oVenues[marker]);
    }
    for (marker in oHotels)
    {
        createPopMarkers(map, 'hotel_pin.png', 0, oHotels[marker]);
    }
    $('#olympicMap a').click(function ()
    {
        if ($(this).hasClass('visible'))
        {
            trafficLayer.setMap(null);
            $(this).removeClass('visible');
        }
        else
        {
            trafficLayer.setMap(map);
            $(this).addClass('visible');
        }
        return false;
    });
    
    $('#olympicMap h4').click(function(){
    	$(this).next('ul').slideToggle(500);
    });
    
}
$('document').ready(init);
